package com.iotek.ssm.service.impl;

import com.iotek.ssm.mapper.EmployeeStatusMapper;
import com.iotek.ssm.pojo.CustomQueryVo;
import com.iotek.ssm.pojo.EmployeeStatus;
import com.iotek.ssm.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("employeeService")
public class EmployeeServiceImpl implements EmployeeService{

    @Autowired
    private EmployeeStatusMapper employeeStatusMapper;

    public void updateStatus(EmployeeStatus employeeStatus) throws Exception {
        employeeStatusMapper.updateStatus(employeeStatus);
    }

    public List<EmployeeStatus> findStatusList(CustomQueryVo customQueryVo) throws Exception {
        return employeeStatusMapper.findStatusList(customQueryVo);
    }

    public int getStatusCounts() throws Exception {
        return employeeStatusMapper.getStatusCounts();
    }
}
